home *** CD-ROM | disk | FTP | other *** search
- To Berionne
-
- > > However some of the tips really surprised me. Ben states that A=A+1
- > > should be faster than both Inc A and Add A,1. He also writes that
- > > Repeat ... Inc ... Until should be faster than For ... Next. I have
- > > been doing some tests on my system and it clearly proves that this
- > > is WRONG!
-
- > Well, you probably did your test from the amos editor, using the Amos
- > interpreter and your tests are right. But if you try to compile your code,
- > you'll see that Ben is right. It's strange but for example For Next is much
- > faster (about 300%) than Repeat Until when interpreted, but far slower
- (about
- > 50%) when compiled. So now, since you release all your software compiled,
- > it's better using Repeat Until and A=A+1. Of course, sometimes you will
- still
- > use For Next since it's easier to read, but limit it for small loops or
- where
- > speed isn't important.
-
- NO! I did NOT do the test from the editor. As _written_ it was done from a
- stand-alone COMPILED executable file. If you won't believe please go buy an
- '060 and try for yourself.
-
- > > I can not believe that Ben Wyatt has not checked his tips, so I must
- > > conclude that the difference in speed is different on different system
-
- > I have got a 030 and Ben's tricks work well.
-
- Okay, so has anyone tried them on a '040, or is it just the '060 who is acting
- "funny"!?
-
- --
- rune j. keller - sporuplundsvej 105 - dk-8472 sporup - keller@vip.cybercity.dk
- -you broke my arm! -there's 215 bones in the human body. that's one!
-
-
-